<%@ page language="java" contentType="application/vnd.ms-excel;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>房屋信息列表</title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>
  	<table>
  	
    <c:if test="${requestScope.result ne null}">
    <tr>
    	<td>编号</td>
   		<td>房屋信息</td>
   		<td>价格</td>
   		<td>位置</td>
   		<td>房型</td>
   		<td>面积</td>
   		<td>更新时间</td>
   	</tr>
    <c:forEach items="${requestScope.result}" var="house" varStatus="status">
    	<tr>
    		<td>${status.count}</td>
   			<td><a href="show?id=${house.id}">${house.title }</a></td>
   			<td>${house.price }</td>
   			<td>${house.street.name}</td>
   			<td>${house.type.name }</td>
   			<td>${house.floorage }</td>
   			<td>${house.date }</td>
   		</tr>	
    </c:forEach>
    </c:if>
    
  	<c:if test="${empty requestScope.result}">
    	<tr><c:out value="无租房信息"></c:out></tr> 
    </c:if>
    
    </table>
  </body>
</html>
